-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support skipping prompts for installing GUI dependencies #395
Conversation
Signed-off-by: Stephen Crowe <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have some lessons learned with the regular deadline bundle submit
command that a --yes
/-y
for these bigger workflows that can have multiple prompts does not work well. It's not obvious what the --yes
should be choosing if a default is not affirmative. It begins to become arbitrary as you force your way through the flow and you lose fine-grained control of those choices.
After the first-use, the -y isn't even used for anything since the user won't be prompted again.
Instead, what are your thoughts about doing something like --ensure-gui
? This way we can still bypass this by choosing ahead of time that we will accept the "do you want to install the gui" prompt without confusing it with other prompts/options
Signed-off-by: Stephen Crowe <[email protected]>
…eadline#395) * feat: support skipping prompts for installing GUI dependencies Signed-off-by: Stephen Crowe <[email protected]>
…eadline#395) * feat: support skipping prompts for installing GUI dependencies Signed-off-by: Stephen Crowe <[email protected]> Signed-off-by: Cloud User <[email protected]>
…eadline#395) * feat: support skipping prompts for installing GUI dependencies Signed-off-by: Stephen Crowe <[email protected]> Signed-off-by: Cloud User <[email protected]>
What was the problem/requirement? (What/Why)
DCM should be able to invoke
deadline bundle gui-submit
non-CLI users can still submit bundles. But if the GUI dependencies aren't already installed, the command will hang until the prompt about installing GUI dependencies is answered.What was the solution? (How)
Support a
--install-gui
flag that skips the prompt.What is the impact of this change?
DCM can invoke the bundle submitter more reliably.
How was this change tested?
By uninstalling PySide and then calling
deadline bundle gui-submit
anddeadline config gui
with and without the--install-gui
flag.Was this change documented?
Yes - in the CLI help.
Is this a breaking change?
No
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.